package com.lagou.search.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单实体类
 * @author yzh
 * @since 2021-12-01
 */
@ApiModel(value = "订单")
@Data
@TableName("search_order")
public class Order implements Serializable {

  @ApiModelProperty("主键")
  @TableId(type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "订单号", position = 1)
  private String orderNo;

  @ApiModelProperty(value = "用户ID", position = 2)
  private Long userId;

  @ApiModelProperty(value = "用户昵称", position = 3)
  private String userName;

  @ApiModelProperty(value = "收货地址",position = 4)
  private String recvAddress;

  @ApiModelProperty(value = "购买商品总数", position = 5)
  private Integer goodsCount;

  @ApiModelProperty(value = "购买商品总金额", position = 6)
  private BigDecimal priceAmount;

  @ApiModelProperty(value = "运费金额", position = 7)
  private BigDecimal freightAmount;

  @ApiModelProperty(value = "平台补贴总金额", position = 8)
  private BigDecimal totalPreferentialAmount;

  @ApiModelProperty(value = "是否货到付款[0:在线付款 1:货到付款]", position = 9)
  private Integer payOnDelivery;

  @ApiModelProperty(value = "订单状态", position = 10)
  private Integer status;

  @ApiModelProperty(value = "支付时间", position = 11)
  private Date payTime;

  @ApiModelProperty(value = "创建人", position = 12)
  private String createUser;

  @ApiModelProperty(value = "创建时间", position = 13)
  private Date createTime;

  @ApiModelProperty(value = "更新人", position = 14)
  private String updateUser;

  @ApiModelProperty(value = "更新时间", position = 15)
  private Date updateTime;

}